<template>
  <div>
    <my-check-box></my-check-box>
    <p>{{ new Date() | formatTime }}</p>
    <otherBox></otherBox>
    <div class="box" v-bdColor="bdColor">
      <button @click="bdColor = 'aqua'">点击换色</button>
      <p v-bdColor="bdColor">wos</p>
    </div>
  </div>
</template>

<script>
import otherBox from "./components/otherBox.vue";
export default {
  components: { otherBox },
  data() {
    return {
      bdColor: "pink",
    };
  },
};
</script>

<style scoped>
.box {
  width: 300px;
  height: 300px;
  border: 1px solid #000;
}
::v-deep p {
  color: red;
}
</style>